package deibay.server.commands;

import deibay.messages.Message;
import deibay.messages.SendAdvertiseMsg;
import deibay.server.ServerManager;
import deibay.server.eventargs.SendAdvertiseEventArg;
import deibay.server.events.SendAdvertiseEvent;
import deibay.users.User;

public class SendAdvertiseCommand extends Command{

	public SendAdvertiseCommand(User user, Message msg) {
		super(user, msg);
	}

	@Override
	public void execute() {		
		ServerManager.getInstance().getEventManager().fireEvent(new SendAdvertiseEvent(new SendAdvertiseEventArg((SendAdvertiseMsg)message)));;
	}

}
